import http from '@/common/http/http'

//出入记录
export function acAccessRecordListApi(data){
	return http({
		url:'/channel/acAccessRecord/list',
		data,
		isToken : true,
		method: 'GET'
	})
}
//
export function acAccessRecordApi(data){
	return http({
		url:'/channel/acAccessRecord',
		data,
		isToken : true,
	})
}

export function acTemporaryGeneralAddApi(data){
	return http({
		url:'/channel/acTemporaryGeneral/add',
		data,
		isToken : true,
	})
}

export function queryAccessByTypeApi(data){
	return http({
		url:'/channel/acAccessRecord/queryAccessByType',
		data,
		isToken : true,
	})
}

export function sumAccessGroupTypeApi(data){
	return http({
		url:'/channel/acAccessRecord/sumAccessGroupType',
		data,
		isToken : true,
	})
}

export function getDepartBypidOridApi(data){
	return http({
		url:'/sys/sysDepart/getDepartBypidOrid',
		data,
		isToken : true,
		method: 'GET'
	})
}

export function ssPersonListApi(data){
	return http({
		url:'/baseinfo/ssPerson/list',
		data,
		isToken : true,
		method: 'GET'
	})
}

export function acTemporaryGeneralListApi(data){
	return http({
		url:'/channel/acTemporaryGeneral/list',
		data,
		isToken : true,
		method: 'GET'
	})
}

export function acAccessRecordQueryByIdApi(data){
	return http({
		url:'/channel/acAccessRecord/queryById',
		data,
		isToken : true,
		method: 'GET'
	})
}


// 家长查询绑定的学生对应的路线站点列表
export function parentCheckSiteListApi(data){
	return http({
		url:'/bus/schoolBusPDA/parentCheckSiteList',
		data,
		isToken : true,
		isOpenId: true,
	})
}
// 教师查看本班学生接送
export function teacherCheckRideApi(data){
	return http({
		url:'/bus/schoolBusPDA/teacherCheckRide',
		data,
		isToken : true,
		isOpenId: true,
	})
}

export function ssVisitAppointmentAddApi(data){
	return http({
		url:'/visitor/ssVisitAppointment/add1',
		data,
		isToken : true,
		isOpenId: true,
	})
}

export function ssVisitAppointmentListApi(data){
	return http({
		url:'/visitor/ssVisitAppointment/list',
		data,
		isToken : true,
		method : 'GET'
	})
}

export function ssVisitAppointmentRefuseApi(data){
	return http({
		url:'/visitor/ssVisitAppointment/refuse',
		data,
		isToken : true,
	})
}

export function ssVisitAppointmentAllowApi(data){
	return http({
		url:'/visitor/ssVisitAppointment/allow',
		data,
		isToken : true,
	})
}

export function listByManagerApi(data){
	return http({
		url:'/baseinfo/ssPerson/listByManager',
		data,
		isToken : true,
		method: 'GET'
	})
}